﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CoreFunction.aspx.cs" Inherits="LearnJquery.CoreFunction" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/jscript" src="js/jquery-1.4.1-vsdoc.js"></script>
    <style type="text/css">
        .black
        {
            background-color: Black;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <p>
        one</p>
    <div>
        <p>
            two</p>
    </div>
    <p>
        Three</p>
    <input type="text" id="text1" />
    <span></span>
    <script type="text/javascript">
        $("span").text($("div>p").html());
        $("<div><p>hello</p></div>").appendTo("body");
        $("<div>", { text: "Click me!",
            click: function () { $(this).toggleClass("black"); }
        }).appendTo("body");
        //$(document.body).css("background", "black");
        $("span").hide();
        $(function () { $("input").val("hello"); });
    </script>
    </form>
</body>
</html>
